#!/usr/bin/env bash

echo "for docker nat..."
iptables -t nat -I POSTROUTING -s 172.17.0.0/16 ! -o docker0 -j MASQUERADE

echo "for vm snat, go surf in kvm vm."
iptables -t nat  -I POSTROUTING -s 192.168.122.0/24 ! -d 192.168.122.0/24 -j MASQUERADE

